#include "Control_String.h"

#include "RendererComponent.h"

using namespace gui;

Control_String::Control_String(CallbackGetString NewCallbackGetValue, Vec<2, float> NewFontSize, ColorRGBA<unsigned char> NewForeColor, ColorRGBA<unsigned char> NewBackColor, Vec<2, float> NewPos, Vec<2, float> NewSize, Control_Menu* NewParentMenu, Host& NewParentHost) :
Control_Text("", NewFontSize, NewForeColor, NewBackColor, NewPos, NewSize, NewParentMenu, NewParentHost),
CallbackGetValue(NewCallbackGetValue)
{
}

void Control_String::Refresh()
{
	Caption = CallbackGetValue();
}

Control_String::~Control_String()
{
}

void Control_String::UpdateVerticesSlow(RendererComponent& Renderer)
{
	Control_Text::UpdateVerticesSlow(Renderer);
}

void Control_String::UpdateVerticesFix(RendererComponent& Renderer)
{
	Control_Visible::UpdateVerticesFix(Renderer);
}